package me.eleme.anubis.openapi.oauth;


import me.eleme.anubis.openapi.api.entity.base.BaseBizResponse;
import me.eleme.anubis.openapi.api.exception.ServiceException;
import me.eleme.anubis.openapi.config.oauth.response.ErrorResponse;

import java.lang.reflect.Type;

/**
 * @author liuzhiyong
 */
public interface IoauthClient {
    /**
     * 认证接口执行方法
     * @param request 认证传入参数
     * @param <T> 认证传入实体泛型
     * @return 认证结果
     */
    <T> T  execute(OauthRequest request, Type type) throws ServiceException;
}
